import { post } from '../../axios/http'

export default {
    getWorkFlowDetailByInfoId(id){
        return new Promise((resolve, reject) => {
            post('/app-wf/api/wfInfo/detail?wfInfoId='+ id)
                .then(res => {
                    resolve(res);
                })
                .catch(error => {
                    console.log(error);
                });
        });
    },
    getWorkFlowDetailByTemplateId(id){
        return new Promise((resolve, reject) => {
            post('/app-wf/api/wfInfo/templateDetail?wfBizDictId='+ id)
                .then(res => {
                    resolve(res);
                })
                .catch(error => {
                    console.log(error);
                });
        });
    }
}